<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Tymon\JWTAuth\Contracts\JWTSubject;

/**
 * App\Guest
 *
 * @property int $id
 * @property string|null $name
 * @property string|null $real_name
 * @property string|null $avatar
 * @property int $auth 是否认证0否1等待审核4已认证
 * @property string|null $wx_id 小程序微信ID
 * @property int $gender 用户性别0未知1男2女
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Guest whereAuth($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Guest whereAvatar($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Guest whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Guest whereGender($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Guest whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Guest whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Guest whereRealName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Guest whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Guest whereWxId($value)
 * @mixin \Eloquent
 * @property int|null $infoed 是否已经获取资料0否1是
 * @property string|null $mobile
 * @property string|null $card
 * @property string|null $images
 * @property int|null $type 用户类型，1班组2招工方
 * @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $notifications
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Guest whereCard($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Guest whereImages($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Guest whereInfoed($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Guest whereMobile($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Guest whereType($value)
 */
class Guest extends Authenticatable implements JWTSubject
{
    use Notifiable;
    protected $guarded = [];

    /**
     * Get the identifier that will be stored in the subject claim of the JWT.
     *
     * @return mixed
     */
    public function getJWTIdentifier()
    {
        return $this->getKey();
    }

    /**
     * Return a key value array, containing any custom claims to be added to the JWT.
     *
     * @return array
     */
    public function getJWTCustomClaims()
    {
        return [];
    }
}
